<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]-->
<html lang="zh-CN">
<head>
    @include('common.head');
</head>
<body class="pace-done" id="c1">
    <!--[if IE]>
<div class="ie-warning">什么？您还在使用 Internet Explorer (IE) 浏览器？ 很遗憾，我们已不再支持IE浏览器。事实上，升级到以下支持HTML5的浏览器将获得更牛逼的操作体验：<a href="http://www.mozillaonline.com/">Firefox</a> / <a href="http://www.google.com/chrome/?hl=zh-CN">Chrome</a> / <a href="http://www.apple.com.cn/safari/">Safari</a> / <a href="http://www.operachina.com/">Opera</a>，
赶紧升级浏览器，让操作效率提升80%-120%！
</div>
<![endif]-->
    <!--顶部菜单-->
    @include('common.admincp_header');
    <div class="admincp-container main-wrapper-design-mode wpst-toolbar-show fold">
        <!--左侧内容-->
        @include('common.admin_main_left');
        <!--右侧内容-->
        <div class="admincp-container-right">
            <div class="top-border"></div>
            <!--缓载div-->
            <div class="loading" id="page-load">
                <div class="loader">
                    <!-- 样式：ball-beat、ball-pulse-sync -->
                    <div class="loader-inner ball-beat">
                        <div></div>
                        <div></div>
                        <div></div>
                    </div>
                </div>
            </div>
            <iframe id="workspace" frameborder="0" scrolling="yes" style="width: 100%; height: 93%; *height: 580px; _height: 580px; overflow: hidden;"></iframe>
        </div>
    </div>

<!-- ================== BEGIN BASE  STYLE ================== -->
<script type="text/javascript" src="{{asset('Admin/js/jquery.cookie.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/bootstrap/js/bootstrap.min.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/common.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/bootstrap/switch/js/bootstrap-switch.min.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/scrollBar/jquery.mousewheel.min.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/scrollBar/jquery.mCustomScrollbar.js')}}"></script>
<!-- ================== END BASE CSS STYLE ================== -->
<script type="text/javascript" src="{{asset('Admin/js/yii.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/layer/layer.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/jquery.method.js')}}"></script>
<script type="text/javascript" src="{{asset('Admin/js/jquery.modal.js')}}"></script>

<script type="text/javascript" src="{{asset('js/main.js')}}"></script>

    <!--全部功能列表模态框-->
    <include file="Public/all-menu" />
    <script type='text/javascript'>
        var is_top = true;
        (function($) {
            $(window).load(function() {
                $(".product-nav-list").mCustomScrollbar();
                $(".dialog_content").mCustomScrollbar();
                $(".theme-config .setings-item").mCustomScrollbar();
                $(".sidebar-fixed").mCustomScrollbar();
                $(".submenu ul").mCustomScrollbar();
            });
        })(jQuery);
        $().ready(function() {
            $("body").on("click", ".edit-password", function() {
                var type = $(this).data("type");
                var id = $(this).data("id");
                var modal = $.modal($(this));
                if (type == 'edit_password') {
                    title = "修改密码";
                    width = 450;
                }
                if (modal) {
                    modal.show();
                } else {
                    modal = $.modal({
                        // 标题
                        title: title,
                        width: width,
                        trigger: $(this),
                        // ajax加载的设置
                        ajax: {
                            url: '/system/admin/edit-password',
                            data: {
                                type: type,
                                id: id
                            }
                        },
                    });
                }
            });
            $("body").on("click", ".sitemap", function() {
                var modal = $.modal($(this));

                if (modal) {
                    modal.show();
                } else {
                    var modal = $.modal({
                        title: '管理中心全部功能菜单',
                        width: 1050,
                        trigger: this,
                        content: $('#all-menu').html(),
                        id: 'all-modal',
                    });
                }

            });
        });
        /*全部菜单鼠标滑过切换tab*/
        function mouseover_tabs(a, c) {
            $('body').on('mouseover', a, function() {
                $(this).addClass(c).siblings().removeClass(c);
                $(this).parents('.admincp-map-nav').next().find('.tab-pane').eq($(this).index()).addClass('in active').siblings().removeClass('in active');
            })
        }
        mouseover_tabs(".admincp-map-nav li", 'active');
    </script>
</body>
</html>